project(
	'floating-button',
	'cpp',
	version: '0.2.0',
	license: 'MIT',
	meson_version: '>=0.59.0',
	default_options: [
		'cpp_std=c++17',
		'c_std=c11',
		'warning_level=2',
		'werror=false',
	],
)

add_project_arguments( '-fPIC', language: ['cpp', 'c'])

dependency( 'pkg-config', required : true )

Qt = import( 'qt6' )
QtWidgets = dependency( 'qt6', modules: ['Widgets'], required : true )
wayqt      = dependency( 'wayqt-qt6', required : true )

Moc = Qt.compile_moc(
	sources: [ 'FloatingButton.cpp' ],
	dependencies: [QtWidgets],
)

executable(
	'floating-button',
	[ 'FloatingButton.cpp', Moc ],
	install : false,
	dependencies : [QtWidgets, wayqt]
)
